﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" ValidateRequest="false" CodeBehind="Add.aspx.cs" Inherits="BMSQ.Admin.Goods.Add" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="/js/kindeditor-4.1.10/themes/default/default.css" />
    <link rel="stylesheet" href="/js/kindeditor-4.1.10/plugins/code/prettify.css" />
    <script charset="utf-8" src="/js/kindeditor-4.1.10/kindeditor.js"></script>
    <script charset="utf-8" src="/js/kindeditor-4.1.10/lang/zh_CN.js"></script>
    <script charset="utf-8" src="/js/kindeditor-4.1.10/plugins/code/prettify.js"></script>
    <script>
        KindEditor.ready(function (K) {
            var editor1 = K.create('#txtInfo', {
                cssPath: '/js/kindeditor-4.1.10/plugins/code/prettify.css',
                uploadJson: '/js/kindeditor-4.1.10/asp.net/upload_json.ashx',
                fileManagerJson: '/js/kindeditor-4.1.10/asp.net/file_manager_json.ashx',
                allowFileManager: true,
                afterBlur: function () {
                    this.sync();
                    var content = $("#txtInfo").val();
                }
            });

            prettyPrint();
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="newslist_title">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="borderkuang">
            <tr>
                <td bgcolor="#FFFFFF" class="newstitle">新增商品
                </td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF" class="newstitlebody">您可以对商品进行新增操作
                </td>
            </tr>
        </table>
    </div>
    <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
        <tr>
            <td class="tdbg">

                <table cellspacing="0" cellpadding="0" width="100%" border="0">
                     <tr>
                        <td height="25" width="30%" align="right">商家类型
	：</td>
                        <td height="25" width="*" align="left">
                            <asp:DropDownList ID="ddlBusinessType" AutoPostBack="true" runat="server" OnSelectedIndexChanged="ddlBusinessType_SelectedIndexChanged"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">商品类型1
	：</td>
                        <td height="25" width="*" align="left">
                            <asp:DropDownList ID="ddlGoodsType1" AutoPostBack="true" runat="server" OnSelectedIndexChanged="ddlGoodsType1_SelectedIndexChanged"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">商品类型2
	：</td>
                        <td height="25" width="*" align="left">
                            <asp:DropDownList ID="ddlGoodsType2" runat="server"></asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">Goods_Name
	：</td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtGoods_Name" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">Goods_Image
	：</td>
                        <td height="25" width="*" align="left">
                            <asp:Image ID="imgGoods" runat="server" />
                            <br />
                            <asp:Label ID="Label1" runat="server" Text="建议图片尺寸：320*180；大小：<200K；图片格式：JPG,PNG." Font-Bold="True"
                                ForeColor="Red"></asp:Label>
                            <br />
                            <asp:FileUpload ID="imgUpload" runat="server" />
                            <asp:Button ID="btnUploadImage" runat="server" Text="上传图片" OnClick="btnUploadImage_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">Goods_Description
	：</td>
                        <td height="25" width="*" align="left">
                            <textarea id="txtInfo" cols="100" rows="8" style="width: 400px; height: 200px;" runat="server"
                                clientidmode="Static"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right">Goods_Unit
	：</td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtGoods_Unit" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                </table>

            </td>
        </tr>
        <tr>
            <td class="tdbg" align="center" valign="bottom">
                <asp:Button ID="btnSave" runat="server" Text="保存"
                    OnClick="btnSave_Click" class="inputbutton" onmouseover="this.className='inputbutton_hover'"
                    onmouseout="this.className='inputbutton'"></asp:Button>
                <asp:Button ID="btnCancle" runat="server" Text="取消"
                    OnClick="btnCancle_Click" class="inputbutton" onmouseover="this.className='inputbutton_hover'"
                    onmouseout="this.className='inputbutton'"></asp:Button>
            </td>
        </tr>
    </table>
    <br />
</asp:Content>
